#define _CRT_SECURE_NO_WARNINGS 1;

#include<stdio.h>
#include<math.h>

void Judge(int n)
{
	double arr[6] = { 0 };

		arr[4] = n / 10000;
		arr[3] = n % 10000 / 1000;
		arr[2] = n % 10000 % 1000 / 100;
		arr[1] = n % 10000 % 1000 % 100 / 10;
		arr[0] = n % 10000 % 1000 % 100 % 10;
	for (int i = 0; i < 5; i++)
	{
		arr[i] = pow((double)n, (double)i);
	}
	for (int i = 0; i < 5; i++)
	{
		printf("%.1lf ", arr[i]);
	}
}
int main()
{
	double n = 0;
	scanf("%d", &n);
	Judge(n);

	return 0;
}

